<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<ul id="app">
    <p>{{Message}}</p>
    <li v-for="(item,index) in items">
        {{Message}}-{{index}}-{{item.message}}
    </li>
</ul>


<!--导入Vue.js-->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>

<script>
    var vm = new Vue({
        el:"#app",
        data:{
            Message: "hello",
            items:[
                {message:'Jack'},
                {message:'Rose'}
            ]
        }
    });

    var app2 = new Vue({
        el: '#app-2',
        data: {
            message: '页面加载于 ' + new Date().toLocaleString()
        }
    })
</script>


</body>
</html>